<template>
  <div id="app">
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
import 'mint-ui/lib/style.css'
import Vue from 'vue'
import FastClick from 'fastclick'
export default {
  name: 'app',
  components:{},
  beforeCreate(){
    //取消延迟300毫秒
    FastClick.attach(document.body)
  },
  mounted(){
    let route = window.location.hash;
    let arr = route.split('/');
    let str = arr[arr.length-1];
    str==""?location.hash="main/homePage":location.hash=route;
  }
}
</script>

<style>
body,div,p{
  margin:0px;
  padding: 0px
}
html,body{-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
html{
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}
.bottom_nav{
  position: fixed;
  bottom: 0px;
  border-top: 1px solid lightgray;
  width: 100%;
  overflow: auto;
  background: white;
}
.bottom_nav .tap{
  float: left;
  width: 50%;
  line-height: 40px;
}
</style>
